<?php #//AJAX PHP PENNY AUCTION v.1.2

#//////////////////////////////////////////////////////////////////
#//  COPYRIGHT 2009 - 2010 Aaron Helmlinger ALL RIGHTS RESERVED  //
#//////////////////////////////////////////////////////////////////
?>

<SCRIPT Language=Javascript>
function SubmitFriendForm(){
	document.friend.submit();
}
function ResetFriendForm(){
	document.friend.reset();
}
</SCRIPT>

            <? 
       
  $tabid = 0; // Change This Number To Correspond To The Tab You Want Activated
  include "tab_menu.php"; // To Change The Tabs - Modify This File
  $subtabid = "logout"; // Change This Variable To Correspond To Tab Sub Menu You Want To Display
  include "tab_submenu.php"; //To Change The Sub Menu - Modify This File
  include "category_menu.php"; //To Change The Category Menu - Modify This File
  $page_title_text = $Refer_A_Friend; //Change This Text To The Text That You Want To Show In The Page Title Bar
  $page_title_note = "<BR><BR>$refer_note1 $free_sign_up_bids $refer_note2"; //Change This Text To Display A Note In The Page Title Bar Area
  include "page_title.php"; //To Change The Page Title Look - Modify This File
  ?>            
      
     <? print $tab_menu ?>  <!-- This displays the Tab Menu - Delete It, If You Do Not Want It Show On The Screen  -->
     <? print $tab_submenu ?>  <!-- This displays the Tab Sub Menu - Delete It, If You Do Not Want It Show On The Screen    -->
     <? print $category_menu ?>  <!--  This displays the Category  Menu - Delete It, If You Do Not Want It Show On The Screen  -->
     <? print $page_title_content_box_start; ?>  <!-- This displays the Title Bar And Content Border - Delete It, If You Do Not Want It Show On The Screen  -->
                                                 <!-- You will also need to delete the "$page_title_content_box_stop" below  -->
        
        
        
         <? //> <!----------------------- START CONTENT HERE -------------------------->  ?>




<DIV class=EDITDATA3>



<TABLE WIDTH="100%" class="content" border=0>
  <TR>
    <TD>
      <FORM NAME="friend" ACTION="refer_a_friend_send.php" METHOD=POST>
        <TABLE WIDTH="90%" cellpadding="4" cellspacing="0" border=0>
          <!-- error message here -->
          <?
		  	if(!empty($TPL_error_text)){
		  ?>
		  <TR> 
            <TD width="40%" ALIGN=right></TD>
            <TD width="60%" align="left" class=errfont><? print $TPL_error_text; ?> </TD>
          </TR>
		  <?}?>
          <!--  -->
               <!-- friend's name -->
          <TR> 
            <TD ALIGN=right> <B><? print $MSG_140; ?></B> 
            </TD>
            <TD align="left"><INPUT class=EDITDATA2 TYPE="TEXT" NAME="friend_name" SIZE="25" VALUE="<? print $TPL_friend_name_value; ?>"> 
            </TD>
          </TR>
          <!-- friend's email -->
          <TR> 
            <TD ALIGN=right> <B><? print $MSG_141; ?></B> 
            </TD>
            <TD align="left"><INPUT class=EDITDATA2 TYPE="TEXT" NAME="friend_email" SIZE="25" VALUE="<? print $TPL_friend_email_value; ?>"> 
            </TD>
          </TR>
          <!-- your name -->
        <?  
       if ($_SESSION["PHPAUCTION_LOGGED_IN"]) {   
              ?>
          <TR> 
            <TD ALIGN=right> <B><? print $MSG_142; ?></B> 
            </TD>
            <TD align="left"><INPUT TYPE="TEXT" class=EDITDATA2 NAME="sender_name" SIZE="25" VALUE="<? print $name; ?>"> 
            </TD>
          </TR>
       
       
       
          <!-- your email -->
          <TR> 
            <TD ALIGN=right> <B><? print $MSG_143; ?></B> 
            </TD>
            <TD align="left"><INPUT TYPE="TEXT" class=EDITDATA2 NAME="sender_email" SIZE="25" VALUE="<? print $email;  ?>"> 
            </TD>
          </TR>
          
           <? } ?>
         
         <?  if (!$_SESSION["PHPAUCTION_LOGGED_IN"]) {  ?> 
          <TR> 
            <TD ALIGN=right> <B><? print $MSG_142; ?></B> 
            </TD>
            <TD align="left"><INPUT TYPE="TEXT" class=EDITDATA2 NAME="sender_name" SIZE="25" VALUE=""> 
            </TD>
          </TR>
       
       
       
          <!-- your email -->
          <TR> 
            <TD ALIGN=right> <B><? print $MSG_143; ?></B> 
            </TD>
            <TD align="left"><INPUT TYPE="TEXT" class=EDITDATA2 NAME="sender_email" SIZE="25" VALUE=""> 
            </TD>
          </TR>
          
          <?  } ?>
          
          
          <!-- comment -->
         <INPUT TYPE="hidden" NAME="sender_comment" VALUE="<? print $TPL_sender_comment_value; ?>">
              
                  <TR> 
            <TD > 
            </TD> <TD > 
              <INPUT TYPE="hidden" NAME="id" VALUE="<? print $TPL_auction_id; ?>"> 
              <INPUT TYPE="hidden" NAME="item_title" VALUE="<? print $TPL_item_title; ?>"> 
              <INPUT TYPE="hidden" NAME="action" VALUE="sendmail">
              <INPUT TYPE="hidden" NAME="security" VALUE="<?php echo $_SESSION['security'];?>" />
			  <INPUT TYPE=submit NAME="" VALUE="<?=$MSG_145?>" class=button /> 
              <INPUT TYPE=reset NAME="" VALUE="<?=$MSG_035?>" class=button /> </TD>
             </TD>
          </TR>
        </TABLE>
      </FORM><p></TD>
  </TR>
</TABLE>  </div>

    <?// <!----------------------- END CONTENT HERE ------------------------->  ?>
                                                 
     <? print $page_title_content_box_stop; ?>  